<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
	<Script file="WorldStateFrame.lua"/>
	<Frame name="WorldStateAlwaysUpTemplate" virtual="true" hidden="true" enableMouse="true">
		<Size>
			<AbsDimension x="45" y="24"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentIcon">
					<Size>
						<AbsDimension x="42" y="42"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="-6" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentText" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentIcon" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="-12" y="10"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentDynamicIconButton" enableMouse="true">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="RIGHT">
						<Offset>
							<AbsDimension x="40" y="9"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentIcon">
							<Size>
								<AbsDimension x="32" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnEnter>
						if ( self.tooltip ) then
							GameTooltip:SetOwner(self, ANCHOR_BOTTOMLEFT);
							GameTooltip:SetText(self.tooltip);
						end
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Frame>
			<Frame name="$parentFlash">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER" relativeTo="$parentDynamicIconButton">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentTexture" alphaMode="ADD">
							<Size>
								<AbsDimension x="32" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<Scripts>
			<OnEnter>
				if ( self.tooltip ) then
					GameTooltip:SetOwner(self, ANCHOR_BOTTOMLEFT);
					GameTooltip:SetText(self.tooltip);
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</Frame>
	<Button name="WorldStateScoreColumnTemplate" enableMouse="true" virtual="true">
		<Size>
			<AbsDimension x="65" y="30"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentText" inherits="GameFontHighlightSmall">
					<Size>
						<AbsDimension x="65" y="24"/>
					</Size>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnEnter>
				GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
				GameTooltip:AddLine(self.tooltip, 1.0, 1.0, 1.0, 1);
				GameTooltip:Show();
			</OnEnter>
			<OnClick>
				if ( self.sortType ) then
					SortBattlefieldScoreData(self.sortType);
				end
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</Button>
	<Frame name="WorldStateScoreTemplate" virtual="true" hidden="true">
		<Size>
			<AbsDimension x="505" y="16"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentFactionLeft" file="Interface\WorldStateFrame\WorldStateFinalScore-Highlight">
					<Size>
						<AbsDimension x="256" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="1" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentFactionRight" file="Interface\WorldStateFrame\WorldStateFinalScore-Highlight">
					<Size>
						<AbsDimension x="20" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentFactionLeft" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
						<Anchor point="RIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="1" right="0" top="0" bottom="1"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<FontString name="$parentTeam" inherits="GameFontNormal" justifyH="LEFT">
					<Size>
						<AbsDimension x="175" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT"  relativePoint="LEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentHonorableKills" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="CENTER" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="127" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentKillingBlows" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="CENTER" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="127" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentDeaths" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="CENTER" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="127" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentHonorGained" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="-7" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentDamage" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="-7" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentHealing" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="-7" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentColumn1Text" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</FontString>
				<Texture name="$parentColumn1Icon">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parentColumn1Text" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentColumn2Text" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</FontString>
				<Texture name="$parentColumn2Icon">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parentColumn2Text" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentColumn3Text" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</FontString>
				<Texture name="$parentColumn3Icon">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parentColumn3Text" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentColumn4Text" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</FontString>
				<Texture name="$parentColumn4Icon">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parentColumn4Text" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentColumn5Text" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</FontString>
				<Texture name="$parentColumn5Icon">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parentColumn5Text" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentColumn6Text" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</FontString>
				<Texture name="$parentColumn6Icon">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parentColumn6Text" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentColumn7Text" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</FontString>
				<Texture name="$parentColumn7Icon">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parentColumn7Text" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentClassButton" enableMouse="true">
				<Size>
					<AbsDimension x="16" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentIcon"/>
					</Layer>
				</Layers>
				<Scripts>
					<OnEnter>
						if ( self.tooltip ) then
							GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
							GameTooltip:SetText(self.tooltip);
						end
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Frame>
			<Frame name="$parentName">
				<Size>
					<AbsDimension x="215" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT">
						<Offset>
							<AbsDimension x="20" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentText" inherits="GameFontNormal" justifyH="LEFT">
							<Size>
								<AbsDimension x="190" y="16"/>
							</Size>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnEnter>
						if ( self.tooltip ) then
							GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
							GameTooltip:SetText(self.name);
							GameTooltip:AddLine(self.tooltip, 1.0, 1.0, 1.0, 1);
							GameTooltip:Show();
						end
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
					<OnMouseUp>
						ScorePlayer_OnMouseUp(self, button);
					</OnMouseUp>
				</Scripts>
			</Frame>
		</Frames>
	</Frame>
	<Button name="WorldStateScoreFrameTabButtonTemplate" virtual="true">
        <Size>
            <AbsDimension x="115" y="32"/>
        </Size>
        <Layers>
        	<Layer level="BACKGROUND">
        		<Texture name="$parentLeftDisabled" file="Interface\PaperDollInfoFrame\UI-Character-ActiveTab">
        			<Size>
        				<AbsDimension x="20" y="29"/>
        			</Size>
        			<Anchors>
        				<Anchor point="TOPLEFT">
        					<Offset>
        						<AbsDimension x="0" y="5"/>
        					</Offset>
        				</Anchor>
        			</Anchors>
					<TexCoords left="0" right="0.15625" top="0.09375" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentMiddleDisabled" file="Interface\PaperDollInfoFrame\UI-Character-ActiveTab">
        			<Size>
        				<AbsDimension x="88" y="29"/>
        			</Size>
        			<Anchors>
        				<Anchor point="LEFT" relativeTo="$parentLeftDisabled" relativePoint="RIGHT"/>
        			</Anchors>
					<TexCoords left="0.15625" right="0.84375" top="0.09375" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentRightDisabled" file="Interface\PaperDollInfoFrame\UI-Character-ActiveTab">
        			<Size>
        				<AbsDimension x="20" y="29"/>
        			</Size>
        			<Anchors>
        				<Anchor point="LEFT" relativeTo="$parentMiddleDisabled" relativePoint="RIGHT"/>
        			</Anchors>
					<TexCoords left="0.84375" right="1.0" top="0.09375" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentLeft" file="Interface\PaperDollInfoFrame\UI-Character-InActiveTab">
        			<Size>
        				<AbsDimension x="20" y="29"/>
        			</Size>
        			<Anchors>
        				<Anchor point="TOPLEFT">
        					<Offset>
        						<AbsDimension x="0" y="4"/>
        					</Offset>
        				</Anchor>
        			</Anchors>
					<TexCoords left="0" right="0.15625" top="0.09375" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentMiddle" file="Interface\PaperDollInfoFrame\UI-Character-InActiveTab">
        			<Size>
        				<AbsDimension x="88" y="29"/>
        			</Size>
        			<Anchors>
        				<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
        			</Anchors>
					<TexCoords left="0.15625" right="0.84375" top="0.09375" bottom="1.0"/>
        		</Texture>
				<Texture name="$parentRight" file="Interface\PaperDollInfoFrame\UI-Character-InActiveTab">
        			<Size>
        				<AbsDimension x="20" y="29"/>
        			</Size>
        			<Anchors>
        				<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
        			</Anchors>
					<TexCoords left="0.84375" right="1.0" top="0.09375" bottom="1.0"/>
        		</Texture>
        	</Layer>
        </Layers>
		<Scripts>
			<OnLoad>
				self:SetFrameLevel(self:GetFrameLevel() + 4);
			</OnLoad>
			<OnShow>
				PanelTemplates_TabResize(self, 0);
				getglobal(self:GetName().."HighlightTexture"):SetWidth(self:GetTextWidth() + 30);
			</OnShow>
			<OnClick>
				WorldStateScoreFrameTab_OnClick(self);
			</OnClick>
		</Scripts>
		<ButtonText name="$parentText">
			<Anchors>
				<Anchor point="CENTER">
					<Offset>
						<AbsDimension x="0" y="9"/>
					</Offset>
				</Anchor>
			</Anchors>
		</ButtonText>
		<NormalFont style="GameFontNormalSmall"/>
		<HighlightFont style="GameFontHighlightSmall"/>
		<DisabledFont style="GameFontHighlightSmall"/>
		<HighlightTexture name="$parentHighlightTexture" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="10" y="9"/>
					</Offset>
				</Anchor>
				<Anchor point="RIGHT">
					<Offset>
						<AbsDimension x="-10" y="9"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
    </Button>
	<Frame name="WorldStateCaptureBarTemplate" virtual="true" toplevel="true" parent="UIParent" hidden="false">
		<Size>
			<AbsDimension x="173" y="26"/>
		</Size>
		<Anchors>
			<Anchor point="TOPRIGHT" relativeTo="MinimapCluster" relativePoint="BOTTOMRIGHT">
				<Offset>
					<AbsDimension x="0" y="15"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentLeftBar" file="Interface\WorldStateFrame\WorldState-CaptureBar">
					<Size>
						<AbsDimension x="61" y="9"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="26" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.8203125" right="1.0" top="0" bottom="0.140625"/>
				</Texture>
				<Texture name="$parentRightBar" file="Interface\WorldStateFrame\WorldState-CaptureBar">
					<Size>
						<AbsDimension x="60" y="9"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT">
							<Offset>
								<AbsDimension x="-26" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.8203125" right="1.0" top="0.171875" bottom="0.3125"/>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentMiddleBar" file="Interface\WorldStateFrame\WorldState-CaptureBar">
					<Size>
						<AbsDimension x="25" y="9"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
					<TexCoords left="0.8203125" right="1.0" top="0.34375" bottom="0.484375"/>
				</Texture>				
			</Layer>
			<Layer level="ARTWORK">
				<Texture file="Interface\WorldStateFrame\WorldState-CaptureBar">
					<Size>
						<AbsDimension x="173" y="26"/>
					</Size>
					<Anchors>
						<Anchor point="TOP"/>
					</Anchors>
					<TexCoords left="0" right="0.67578125" top="0" bottom="0.40625"/>
				</Texture>
				<Texture name="$parentRightLine" file="Interface\WorldStateFrame\WorldState-CaptureBar">
					<Size>
						<AbsDimension x="3" y="8"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentMiddleBar" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="-1" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.74609375" right="0.7578125" top="0" bottom="0.125"/>
				</Texture>
				<Texture name="$parentLeftLine" file="Interface\WorldStateFrame\WorldState-CaptureBar">
					<Size>
						<AbsDimension x="3" y="8"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parentMiddleBar" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="1" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.74609375" right="0.7578125" top="0" bottom="0.125"/>
				</Texture>
				<Texture name="$parentLeftIconHighlight" file="Interface\WorldStateFrame\WorldState-CaptureBar" hidden="true" alphaMode="ADD">
					<Size>
						<AbsDimension x="27" y="28"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="-1" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.10546875" top="0.4375" bottom="0.875"/>
				</Texture>
				<Texture name="$parentRightIconHighlight" file="Interface\WorldStateFrame\WorldState-CaptureBar" hidden="true" alphaMode="ADD">
					<Size>
						<AbsDimension x="27" y="28"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT">
							<Offset>
								<AbsDimension x="1" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.10546875" top="0.4375" bottom="0.875"/>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentIndicator">
				<Size>
					<AbsDimension x="5" y="18"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture file="Interface\WorldStateFrame\WorldState-CaptureBar" setAllPoints="true">
							<Size>
								<AbsDimension x="5" y="18"/>
							</Size>
							<TexCoords left="0.77734375" right="0.796875" top="0" bottom="0.28125"/>
						</Texture>
					</Layer>
					<Layer level="BACKGROUND">
						<Texture name="$parentLeft" file="Interface\WorldStateFrame\WorldState-CaptureBar" hidden="false">
							<Size>
								<AbsDimension x="8" y="15"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="1" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.7265625" right="0.76171875" top="0.140625" bottom="0.375"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\WorldStateFrame\WorldState-CaptureBar" hidden="false">
							<Size>
								<AbsDimension x="8" y="15"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="-1" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.76171875" right="0.7265625" top="0.140625" bottom="0.375"/>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
	</Frame>
	<Frame name="WorldStateAlwaysUpFrame" toplevel="true" parent="UIParent">
		<Size>
			<AbsDimension x="10" y="10"/>
		</Size>
		<Anchors>
			<Anchor point="TOP">
				<Offset>
					<AbsDimension x="-5" y="-15"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnLoad>
				WorldStateAlwaysUpFrame_OnLoad(self);
			</OnLoad>
			<OnEvent>
				WorldStateAlwaysUpFrame_OnEvent(self, event, ...);
			</OnEvent>
			<OnEnter>
				if ( self.tooltip ) then
					GameTooltip:SetOwner(self);
					GameTooltip:SetText(self.tooltip);
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</Frame>
	<!-- Score Frame -->
	<Frame name="WorldStateScoreFrame" toplevel="true" parent="UIParent" movable="true" hidden="true">
		<Size>
			<AbsDimension x="640" y="512"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER">
				<Offset>
					<AbsDimension x="55" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<HitRectInsets>
			<AbsInset left="0" right="30" top="0" bottom="70"/>
		</HitRectInsets>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="WorldStateScoreFrameTopLeft" file="Interface\WorldStateFrame\WorldStateFinalScoreFrame-TopLeft">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="8" y="-16"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="WorldStateScoreFrameTopRight" file="Interface\WorldStateFrame\WorldStateFinalScoreFrame-TopRight">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="-16"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="WorldStateScoreFrameTop" file="Interface\WorldStateFrame\WorldStateFinalScoreFrame-Top">
					<Size>
						<AbsDimension x="0" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="WorldStateScoreFrameTopLeft" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
						<Anchor point="TOPRIGHT" relativeTo="WorldStateScoreFrameTopRight" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="WorldStateScoreFrameBottomLeft" file="Interface\WorldStateFrame\WorldStateFinalScoreFrame-BotLeft">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="WorldStateScoreFrameTopLeft" relativePoint="BOTTOMLEFT"/>
					</Anchors>
				</Texture>
				<Texture name="WorldStateScoreFrameBottomRight" file="Interface\WorldStateFrame\WorldStateFinalScoreFrame-BotRight">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="WorldStateScoreFrameTopRight" relativePoint="BOTTOMRIGHT"/>
					</Anchors>
				</Texture>
				<Texture name="WorldStateScoreFrameBottom" file="Interface\WorldStateFrame\WorldStateFinalScoreFrame-Bot">
					<Size>
						<AbsDimension x="0" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="WorldStateScoreFrameBottomLeft" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
						<Anchor point="TOPRIGHT" relativeTo="WorldStateScoreFrameBottomRight" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="WorldStateScoreFrameLabel" inherits="GameFontNormal" text="BATTLEFIELDS">
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="-57" y="-21"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="WorldStateScoreFrameTimerLabel" inherits="GameFontHighlightSmall" text="TIME_TO_PORT">
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="20" y="77"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="WorldStateScoreFrameTimer" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="LEFT" relativeTo="WorldStateScoreFrameTimerLabel" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="2" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="WorldStateScorePlayerCount" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="WorldStateScoreBattlegroundRunTime" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="BACKGROUND">
				<Texture name="WorldStateScoreFrameTopBackground" file="Interface\WorldStateFrame\WorldStateFinalScoreFrame-TopBackground">
					<Size>
						<AbsDimension x="0" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="WorldStateScoreFrameTopLeft">
							<Offset>
								<AbsDimension x="5" y="-4"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="2.0" top="0" bottom="1.0"/>
				</Texture>				
			</Layer>
		</Layers>
		<Frames>
			<Button name="WorldStateScoreFrameClass" inherits="WorldStateScoreColumnTemplate">
				<Size>
					<AbsDimension x="16" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="18" y="-48"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture file="Interface\PvPRankBadges\PvPRank06">
							<Size>
								<AbsDimension x="16" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self.sortType = "class";
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="WorldStateScoreFrameName" inherits="WorldStateScoreColumnTemplate">
				<Size>
					<AbsDimension x="215" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="WorldStateScoreFrameClass">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						WorldStateScoreFrameNameText:SetPoint("LEFT", "WorldStateScoreFrameName", "LEFT", 20, 0);
						WorldStateScoreFrameNameText:SetJustifyH("LEFT");
						WorldStateScoreFrameNameText:SetText(NAME);
						self.sortType = "name";
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="WorldStateScoreFrameTeam" inherits="WorldStateScoreColumnTemplate">
				<Size>
					<AbsDimension x="175" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="WorldStateScoreFrameName" relativePoint="RIGHT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						WorldStateScoreFrameTeamText:SetPoint("LEFT", "WorldStateScoreFrameTeam", "LEFT", 0, 0);
						WorldStateScoreFrameTeamText:SetText(TEAM);
						WorldStateScoreFrameTeamText:SetJustifyH("LEFT");
						self.sortType = "team";
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="WorldStateScoreFrameKB" inherits="WorldStateScoreColumnTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="WorldStateScoreFrameName" relativePoint="RIGHT">
						<Offset x="4" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						WorldStateScoreFrameKBText:SetText(SCORE_KILLING_BLOWS);
						self.tooltip = KILLING_BLOW_TOOLTIP;
						self.sortType = "kills";
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="WorldStateScoreFrameDeaths" inherits="WorldStateScoreColumnTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="WorldStateScoreFrameKB" relativePoint="RIGHT">
						<Offset x="-5" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						WorldStateScoreFrameDeathsText:SetText(DEATHS);
						self.tooltip = DEATHS_TOOLTIP;
						self.sortType = "deaths";
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="WorldStateScoreFrameHK" inherits="WorldStateScoreColumnTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="WorldStateScoreFrameDeaths" relativePoint="RIGHT">
						<Offset x="-5" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						WorldStateScoreFrameHKText:SetText(SCORE_HONORABLE_KILLS);
						self.tooltip = HONORABLE_KILLS_TOOLTIP;
						self.sortType = "hk";
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="WorldStateScoreFrameDamageDone" inherits="WorldStateScoreColumnTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="WorldStateScoreFrameHK" relativePoint="RIGHT">
						<Offset x="-5" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						WorldStateScoreFrameDamageDoneText:SetText(SCORE_DAMAGE_DONE);
						self.tooltip = DAMAGE_DONE_TOOLTIP;
						self.sortType = "damage";
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="WorldStateScoreFrameHealingDone" inherits="WorldStateScoreColumnTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="WorldStateScoreFrameDamageDone" relativePoint="RIGHT">
						<Offset x="-5" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						WorldStateScoreFrameHealingDoneText:SetText(SCORE_HEALING_DONE);
						self.tooltip = HEALING_DONE_TOOLTIP;
						self.sortType = "healing";
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="WorldStateScoreFrameHonorGained" inherits="WorldStateScoreColumnTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="WorldStateScoreFrameHealingDone" relativePoint="RIGHT">
						<Offset x="-5" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						WorldStateScoreFrameHonorGainedText:SetText(SCORE_HONOR_GAINED);
						self.tooltip = HONOR_GAINED_TOOLTIP;
						self.sortType = "cp";
					</OnLoad>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_LEFT");
						GameTooltip:AddLine(self.tooltip, 1.0, 1.0, 1.0, 1);
						GameTooltip:Show();
					</OnEnter>
				</Scripts>
			</Button>
			<Button name="WorldStateScoreColumn1" inherits="WorldStateScoreColumnTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="WorldStateScoreFrameHealingDone" relativePoint="RIGHT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.sortType = "stat1";
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="WorldStateScoreColumn2" inherits="WorldStateScoreColumnTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="WorldStateScoreColumn1" relativePoint="RIGHT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.sortType = "stat2";
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="WorldStateScoreColumn3" inherits="WorldStateScoreColumnTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="WorldStateScoreColumn2" relativePoint="RIGHT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.sortType = "stat3";
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="WorldStateScoreColumn4" inherits="WorldStateScoreColumnTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="WorldStateScoreColumn3" relativePoint="RIGHT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.sortType = "stat4";
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="WorldStateScoreColumn5" inherits="WorldStateScoreColumnTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="WorldStateScoreColumn4" relativePoint="RIGHT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.sortType = "stat5";
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="WorldStateScoreColumn6" inherits="WorldStateScoreColumnTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="WorldStateScoreColumn5" relativePoint="RIGHT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.sortType = "stat6";
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="WorldStateScoreColumn7" inherits="WorldStateScoreColumnTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="WorldStateScoreColumn6" relativePoint="RIGHT">
						<Offset x="0" y="0"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.sortType = "stat7";
					</OnLoad>
				</Scripts>
			</Button>
			
			<!-- Unit drop down for the Notify AFK -->
			<Frame name="ScorePlayerDropDown" inherits="UIDropDownMenuTemplate" clampedToScreen="true" id="1" hidden="true" />
			
			<Frame name="WorldStateScoreButton1" inherits="WorldStateScoreTemplate" id="1">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="17" y="-78"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton2" inherits="WorldStateScoreTemplate" id="2">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton1" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton3" inherits="WorldStateScoreTemplate" id="3">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton2" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton4" inherits="WorldStateScoreTemplate" id="4">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton3" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton5" inherits="WorldStateScoreTemplate" id="5">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton4" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton6" inherits="WorldStateScoreTemplate" id="6">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton5" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton7" inherits="WorldStateScoreTemplate" id="7">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton6" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton8" inherits="WorldStateScoreTemplate" id="8">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton7" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton9" inherits="WorldStateScoreTemplate" id="9">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton8" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton10" inherits="WorldStateScoreTemplate" id="10">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton9" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton11" inherits="WorldStateScoreTemplate" id="11">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton10" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton12" inherits="WorldStateScoreTemplate" id="12">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton11" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton13" inherits="WorldStateScoreTemplate" id="13">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton12" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton14" inherits="WorldStateScoreTemplate" id="14">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton13" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton15" inherits="WorldStateScoreTemplate" id="15">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton14" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton16" inherits="WorldStateScoreTemplate" id="16">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton15" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton17" inherits="WorldStateScoreTemplate" id="17">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton16" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton18" inherits="WorldStateScoreTemplate" id="18">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton17" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton19" inherits="WorldStateScoreTemplate" id="19">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton18" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton20" inherits="WorldStateScoreTemplate" id="20">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton19" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<!--
			<Frame name="WorldStateScoreButton21" inherits="WorldStateScoreTemplate" id="21">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton20" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton22" inherits="WorldStateScoreTemplate" id="22">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton21" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="WorldStateScoreButton23" inherits="WorldStateScoreTemplate" id="23">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="WorldStateScoreButton22" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="1"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
			-->
			<ScrollFrame name="WorldStateScoreScrollFrame" inherits="FauxScrollFrameTemplate">
				<Size>
					<AbsDimension x="296" y="361"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-148" y="-76"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture name="$parentScrollBarTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
							<Size>
								<AbsDimension x="31" y="254"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
									<Offset>
										<AbsDimension x="-2" y="3"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.484375" top="0.0078125" bottom="1.0"/>
						</Texture>
						<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
							<Size>
								<AbsDimension x="31" y="56"/>
							</Size>
							<Anchors>
								<Anchor point="TOP" relativeTo="$parentScrollBarTop" relativePoint="BOTTOM">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.484375" top="0.78125" bottom="1.0"/>
						</Texture>
						<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
							<Size>
								<AbsDimension x="31" y="105"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
									<Offset>
										<AbsDimension x="-2" y="-1"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.515625" right="1.0" top="0" bottom="0.41015625"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnVerticalScroll>
						FauxScrollFrame_OnVerticalScroll(self, offset, SKILLFRAME_SKILL_HEIGHT, WorldStateScoreFrame_Update);
					</OnVerticalScroll>
				</Scripts>
			</ScrollFrame>
			<Button name="WorldStateScoreFrameCloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-111" y="-12"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="WorldStateScoreFrameTab1" inherits="WorldStateScoreFrameTabButtonTemplate" id="1" text="ALL">
                <Anchors>
                    <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT">
                        <Offset>
                            <AbsDimension x="10" y="69"/>
                        </Offset>
                    </Anchor>
                </Anchors>
				<Scripts>
					<OnClick>
						WorldStateScoreFrameTab_OnClick(self);
					</OnClick>
				</Scripts>
            </Button>
			<Button name="WorldStateScoreFrameTab2" inherits="WorldStateScoreFrameTabButtonTemplate" id="2" text="FACTION_ALLIANCE">
                <Anchors>
                    <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="WorldStateScoreFrameTab1">
                        <Offset>
                            <AbsDimension x="-16" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
				<Scripts>
					<OnClick>
						WorldStateScoreFrameTab_OnClick(self);
					</OnClick>
				</Scripts>
            </Button>
			<Button name="WorldStateScoreFrameTab3" inherits="WorldStateScoreFrameTabButtonTemplate" id="3" text="FACTION_HORDE">
                <Anchors>
                    <Anchor point="LEFT" relativePoint="RIGHT" relativeTo="WorldStateScoreFrameTab2">
                        <Offset>
                            <AbsDimension x="-16" y="0"/>
                        </Offset>
                    </Anchor>
                </Anchors>
				<Scripts>
					<OnClick>
						WorldStateScoreFrameTab_OnClick(self);
					</OnClick>
				</Scripts>
            </Button>
			<Button name="WorldStateScoreFrameLeaveButton" inherits="UIPanelButtonTemplate" text="LEAVE_BATTLEGROUND">
				<Size>
					<AbsDimension x="153" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOM">
						<Offset>
							<AbsDimension x="-30" y="76"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						LeaveBattlefield();
					</OnClick>
				</Scripts>
			</Button>
			<Frame name="WorldStateScoreWinnerFrame" hidden="true">
				<Size>
					<AbsDimension x="10" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="17" y="-20"/>
						</Offset>
					</Anchor>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-141" y="-20"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentLeft" file="Interface\WorldStateFrame\WorldStateFinalScore-Highlight">
							<Size>
								<AbsDimension x="256" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="1" top="0" bottom="1"/>
						</Texture>
						<Texture name="$parentRight" file="Interface\WorldStateFrame\WorldStateFinalScore-Highlight">
							<Size>
								<AbsDimension x="50" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
								<Anchor point="RIGHT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="1" right="0" top="0" bottom="1"/>
						</Texture>
						<FontString name="$parentText" inherits="GameFontHighlight">
							<Anchors>
								<Anchor point="CENTER">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<HitRectInsets>
			<AbsInset left="13" right="115" top="10" bottom="13"/>
		</HitRectInsets>
		<Scripts>
			<OnLoad>
				WorldStateScoreFrame_OnLoad(self);
			</OnLoad>
			<OnEvent>
				if	( event == "UPDATE_BATTLEFIELD_SCORE" or event == "UPDATE_WORLD_STATES") then
					if ( WorldStateScoreFrame:IsVisible() or GetBattlefieldWinner() ) then
						WorldStateScoreFrame_Resize();
						WorldStateScoreFrame_Update();
					end
				end
				if ( event == "PLAYER_ENTERING_WORLD" ) then
					HideUIPanel(WorldStateScoreFrame);
					BATTLEFIELD_SHUTDOWN_TIMER = 0;
				end
			</OnEvent>
			<OnShow>
				WorldStateScoreFrame_Resize();
				WorldStateScoreFrame_Update();
				WorldStateScoreFrameTab_OnClick(WorldStateScoreFrameTab1);
			</OnShow>
			<OnUpdate>
				RequestBattlefieldScoreData();
			</OnUpdate>
		</Scripts>
	</Frame>
</Ui>
